package com.xbwang.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xbwang
 * @date 2023/9/5 11:29
 **/
@TableName("xzzl_access_token")
@Data
public class WxToken implements Serializable {
    @TableId
    private String id;
    @TableField("access_token")
    private String access_token;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;
    @TableField(exist = false)
    private String expires_in;
    @TableField(exist = false)
    private String errcode;
    @TableField(exist = false)
    private String errmsg;
    @TableField(exist = false)
    private String openid;
}
